package com.mlt.back.web.servlet;


import com.mlt.back.beans.Manager;
import com.mlt.back.beans.Role;
import com.mlt.back.dao.impl.ManagerDaoImpl;
import com.mlt.back.dao.impl.RoleDaoImpl;
import com.mlt.back.service.ManagerService;
import com.mlt.back.service.RoleService;
import com.mlt.back.service.impl.ManagerServiceImpl;
import com.mlt.back.service.impl.RoleServiceImpl;

import java.util.List;

/**
 * chan
 * 测试dao类
 */
public class Main {
    public static void main(String[] args) {
        /*RoleDaoImpl roleDao = new RoleDaoImpl();
        List<Role> roleList=roleDao.selectAll();
        System.out.println(roleList);*/

        /*ManagerDaoImpl managerDao = new ManagerDaoImpl();
        String s = managerDao.doCheck("mgr_tel", "1888325");
        System.out.println(s);*/
        RoleService roleService = new RoleServiceImpl();
        ManagerService managerService=new ManagerServiceImpl();
//        String role_id="2";
//        int page=0;
//        List<Manager> managerList=managerService.selectByRole(null,page);
//       System.out.println(managerList);
        roleService.del(10000016);
        managerService.del(10000016);
    }
}
